 /* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.





Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/


#import <Foundation/Foundation.h>
#import <JDCloudOCSDKYundingdatapush/YundingdatapushModel.h>

@implementation VenderShow
-(id) initWithAppkey:(NSString*) appkey
      ydRdsInstanceId:(NSString*)ydRdsInstanceId
      venderId:(NSString*)venderId
      venderName:(NSString*)venderName { 
     self.appkey = appkey;               
     self.ydRdsInstanceId = ydRdsInstanceId;               
     self.venderId = venderId;               
     self.venderName = venderName;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self appkey])
    {
        [result setValue:[self appkey] forKey:@"appkey"];
    }
    if([self ydRdsInstanceId])
    {
        [result setValue:[self ydRdsInstanceId] forKey:@"ydRdsInstanceId"];
    }
    if([self venderId])
    {
        [result setValue:[self venderId] forKey:@"venderId"];
    }
    if([self venderName])
    {
        [result setValue:[self venderName] forKey:@"venderName"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.appkey = [dictionary objectForKey:@"appkey"];
    self.ydRdsInstanceId = [dictionary objectForKey:@"ydRdsInstanceId"];
    self.venderId = [dictionary objectForKey:@"venderId"];
    self.venderName = [dictionary objectForKey:@"venderName"];
    return self;
}
 @end
@implementation Vender
-(id) initWithAppkey:(NSString*) appkey
      ydRdsInstanceId:(NSString*)ydRdsInstanceId
      venderId:(NSString*)venderId { 
     self.appkey = appkey;               
     self.ydRdsInstanceId = ydRdsInstanceId;               
     self.venderId = venderId;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self appkey])
    {
        [result setValue:[self appkey] forKey:@"appkey"];
    }
    if([self ydRdsInstanceId])
    {
        [result setValue:[self ydRdsInstanceId] forKey:@"ydRdsInstanceId"];
    }
    if([self venderId])
    {
        [result setValue:[self venderId] forKey:@"venderId"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.appkey = [dictionary objectForKey:@"appkey"];
    self.ydRdsInstanceId = [dictionary objectForKey:@"ydRdsInstanceId"];
    self.venderId = [dictionary objectForKey:@"venderId"];
    return self;
}
 @end
@implementation RdsInstance
-(id) initWithInstanceId:(NSString*) instanceId
      regionId:(NSString*)regionId
      vpcId:(NSString*)vpcId
      vpcName:(NSString*)vpcName
      instanceName:(NSString*)instanceName
      instanceStatus:(NSString*)instanceStatus
      instanceType:(NSString*)instanceType
      instanceClass:(NSString*)instanceClass { 
     self.instanceId = instanceId;               
     self.regionId = regionId;               
     self.vpcId = vpcId;               
     self.vpcName = vpcName;               
     self.instanceName = instanceName;               
     self.instanceStatus = instanceStatus;               
     self.instanceType = instanceType;               
     self.instanceClass = instanceClass;               
    return self;
}

-(NSMutableDictionary*) dictionary{
    NSMutableDictionary* result = [[NSMutableDictionary alloc] init];
    if([self instanceId])
    {
        [result setValue:[self instanceId] forKey:@"instanceId"];
    }
    if([self regionId])
    {
        [result setValue:[self regionId] forKey:@"regionId"];
    }
    if([self vpcId])
    {
        [result setValue:[self vpcId] forKey:@"vpcId"];
    }
    if([self vpcName])
    {
        [result setValue:[self vpcName] forKey:@"vpcName"];
    }
    if([self instanceName])
    {
        [result setValue:[self instanceName] forKey:@"instanceName"];
    }
    if([self instanceStatus])
    {
        [result setValue:[self instanceStatus] forKey:@"instanceStatus"];
    }
    if([self instanceType])
    {
        [result setValue:[self instanceType] forKey:@"instanceType"];
    }
    if([self instanceClass])
    {
        [result setValue:[self instanceClass] forKey:@"instanceClass"];
    }
    return result;
}

-(id) initWithDic:(NSDictionary*)dictionary{
    self.instanceId = [dictionary objectForKey:@"instanceId"];
    self.regionId = [dictionary objectForKey:@"regionId"];
    self.vpcId = [dictionary objectForKey:@"vpcId"];
    self.vpcName = [dictionary objectForKey:@"vpcName"];
    self.instanceName = [dictionary objectForKey:@"instanceName"];
    self.instanceStatus = [dictionary objectForKey:@"instanceStatus"];
    self.instanceType = [dictionary objectForKey:@"instanceType"];
    self.instanceClass = [dictionary objectForKey:@"instanceClass"];
    return self;
}
 @end
 
 


